'use strict';

/*document.title = 'javs'




var aaa = document.getElementsByTagName('dt')

var d = '饮料有'

console.log(aaa[0].innerHTML);




for(let i = 0 ;  i < aaa.length ; i++ ){

    d= d + aaa[i].innerHTML+','



}
console.log(d);

var cookie = document.cookie

console.log(cookie);*/

//console.log( document.getElementsByTagName('dt').   );

/*var  a = document.getElementsByName('')

a.innerHTML='av'

a.innerHTML = 'ABC <span style="color:red">RED</span> XYZ';

a.innerText = 'ABC <span style="color:red">RED</span> XYZ';


// 获取<p id="p-id">...</p>
//var p = document.getElementById('drink-menu');
// 设置文本:
//p.innerText = 'Hi';
//p.style.color = 'red'

p.style.paddingTop = '2em';
// HTML被自动编码，无法设置一个<script>节点:
 //<p id="p-id">&lt;script&gt;alert("Hi")&lt;/script&gt;</p>
*/
